/**
 * Created by AllanXu on 01/03/2016.
 */
define(function (require) {
	var Vue = require('vue'),
        Config = require('config'),
		_ = require('ajax'),
		utilities = require('utilities');

	var app = new Vue({
		el: '#uc_site_message',
		data: {
		    listArr: [],
			picServer: Config.picServer
		},
		methods:{
			init: function () {
                _(Config.SERVICE.USERCENTER.MESSAGE_LIST, {
					id: sessionStorage.id
				}, function(data) {
					app.listArr = data.pageitems;
                });
			},
			go: function(url){
				location.href = url;
			}
		}
	});
	app.init();
});
